Fix typos catched via misspell (thanks Go Report Card!)
This commit is contained in:
@@ -885,7 +885,7 @@ func TestGetRequestFileName404sWhenFileDoesntExist(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Discuss which error is appropiate when the form doesn't exists
|
// TODO: Discuss which error is appropriate when the form doesn't exists
|
||||||
func TestGetRequestFileName404sWhenFormDoesntExist(t *testing.T) {
|
func TestGetRequestFileName404sWhenFormDoesntExist(t *testing.T) {
|
||||||
h := model.Handler{
|
h := model.Handler{
|
||||||
Request: httptest.NewRequest("POST", "/", nil),
|
Request: httptest.NewRequest("POST", "/", nil),
|
||||||
@@ -964,7 +964,7 @@ func TestGetRequestFileContent404sWhenFileDoesntExist(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Discuss which error is appropiate when the form doesn't exists
|
// TODO: Discuss which error is appropriate when the form doesn't exists
|
||||||
func TestGetRequestFileContent404sWhenFormDoesntExist(t *testing.T) {
|
func TestGetRequestFileContent404sWhenFormDoesntExist(t *testing.T) {
|
||||||
h := model.Handler{
|
h := model.Handler{
|
||||||
Request: httptest.NewRequest("POST", "/", nil),
|
Request: httptest.NewRequest("POST", "/", nil),
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ func TestSpawnWritesToStdout(t *testing.T) {
|
|||||||
|
|
||||||
jldata := decodeJailLover(out.Bytes())
|
jldata := decodeJailLover(out.Bytes())
|
||||||
if jldata.Cmdline[0] != locateJailLover() {
|
if jldata.Cmdline[0] != locateJailLover() {
|
||||||
t.Error("Ouput does not match jaillover's")
|
t.Error("Output does not match jaillover's")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -150,7 +150,7 @@ For instance, given this request:
|
|||||||
HTTP/1.1 GET /routes
|
HTTP/1.1 GET /routes
|
||||||
```
|
```
|
||||||
|
|
||||||
an appropiate reponse may look like this:
|
an appropriate reponse may look like this:
|
||||||
```http
|
```http
|
||||||
200 OK
|
200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
@@ -507,7 +507,7 @@ following resource paths:
|
|||||||
- Acceptable Value: Any string of bytes.
|
- Acceptable Value: Any string of bytes.
|
||||||
- Default Value: N/A
|
- Default Value: N/A
|
||||||
- Comment: For media types other than `application/octet-stream` you should
|
- Comment: For media types other than `application/octet-stream` you should
|
||||||
specify the appropiate `Content-Type` header.
|
specify the appropriate `Content-Type` header.
|
||||||
|
|
||||||
**Note**: Parameters under `request` are read-only and, conversely, parameters under
|
**Note**: Parameters under `request` are read-only and, conversely, parameters under
|
||||||
`response` are write-only.
|
`response` are write-only.
|
||||||
|
|||||||
Reference in New Issue
Block a user