Skip to content

Commit a1ad219

Browse files
committed
Merge pull request astaxie#30 from mattharden/master
word choice and table formatting in README.md
2 parents 0dd009f + b8f8a49 commit a1ad219

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ You can also quote values, e.g. `foo="bar baz"`.
144144
## JSON
145145
JSON is the lingua franca of modern web services and it is also the implicit content type bat by default uses:
146146

147-
If your command includes some data items, they are serialized as a JSON object by default. bat also automatically sets the following headers, both of which can be overwritten:
147+
If your command includes some data items, they are serialized as a JSON object by default. bat also automatically sets the following headers, both of which can be overridden:
148148

149-
|Content-Type | application/json |
150-
| -------------| ----------------- |
151-
|Accept |application/json|
149+
| header | value |
150+
| ------------ | ---------------- |
151+
| Content-Type | application/json |
152+
| Accept | application/json |
152153

153154
You can use --json=true, -j=true to explicitly set Accept to `application/json` regardless of whether you are sending data (it's a shortcut for setting the header via the usual header notation – `bat url Accept:application/json`).
154155

@@ -252,7 +253,7 @@ There are a couple of default headers that bat sets:
252253
User-Agent: bat/<version>
253254
Host: <taken-from-URL>
254255

255-
Any of the default headers can be overwritten.
256+
Any of the default headers can be overridden.
256257

257258
# Authentication
258259
Basic auth:
@@ -274,4 +275,4 @@ In your ~/.bash_profile:
274275

275276
export HTTP_PROXY=http://10.10.1.10:3128
276277
export HTTPS_PROXY=https://10.10.1.10:1080
277-
export NO_PROXY=localhost,example.com
278+
export NO_PROXY=localhost,example.com

0 commit comments

Comments
 (0)