Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
fix content-type suggestion in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Jul 8, 2020
1 parent 41316c6 commit f7e0bd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/Adaptor.js
Expand Up @@ -167,7 +167,7 @@ function get(path, params, callback) {
* @example
* post("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -218,7 +218,7 @@ function post(path, params, callback) {
* @example
* put("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -269,7 +269,7 @@ function put(path, params, callback) {
* @example
* patch("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -320,7 +320,7 @@ function patch(path, params, callback) {
* @example
* del("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "language-http",
"version": "2.4.6",
"version": "2.4.7",
"description": "An HTTP request language package for use with Open Function",
"main": "lib/index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/Adaptor.js
Expand Up @@ -81,7 +81,7 @@ export function get(path, params, callback) {
* @example
* post("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -133,7 +133,7 @@ export function post(path, params, callback) {
* @example
* put("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -185,7 +185,7 @@ export function put(path, params, callback) {
* @example
* patch("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down Expand Up @@ -237,7 +237,7 @@ export function patch(path, params, callback) {
* @example
* del("/myendpoint", {
* body: {"foo": "bar"},
* headers: {"content-type": "json"},
* headers: {"content-type": "application/json"},
* authentication: {username: "user", password: "pass"},
* },
* function(state) {
Expand Down

0 comments on commit f7e0bd8

Please sign in to comment.