Skip to content

Commit

Permalink
updates domains in the cookie command line example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jevgeni Zelenkov committed Jul 8, 2014
1 parent e228858 commit 10b5fbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ you specified. Without this pages can be longer than your specified height.
Start the review server on port `port`.


## `--cookie` command line example
## cookie command line example

`--cookie` accepts either an object with cookie parameters:

review --sites='{"google":"http://google.com"}' --cookie='{"name":"SESS_ID","value":"teapot","domain":".example.com"}'
review --sites='{"google":"http://google.com"}' --cookie='{"name":"SESS_ID","value":"teapot","domain":"google.com"}'

or an array of objects called `cookies` with cookie paramers. Here is an example JSON:

Expand All @@ -157,20 +157,20 @@ or an array of objects called `cookies` with cookie paramers. Here is an example
{
"name": "SESS_ID",
"value": "teapot",
"domain": ".example.com"
"domain": "google.com"
},
{
"name": "last_visited",
"value": "1404826515",
"domain": ".example.com"
"domain": "google.com"
}
]}
```

Which translates to the following command line argument:

```bash
review --sites='{"google":"http://google.com"}' --cookie='{"cookies":[{"name":"SESS_ID","value":"teapot","domain":".example.com"},{"name":"last_visited","value":"1404826515","domain":".example.com"}]}'
review --sites='{"google":"http://google.com"}' --cookie='{"cookies":[{"name":"SESS_ID","value":"teapot","domain":"google.com"},{"name":"last_visited","value":"1404826515","domain":"google.com"}]}'
```

## Installation
Expand Down

0 comments on commit 10b5fbc

Please sign in to comment.