Skip to content

Commit 5e455d9

Browse files
authored
Merge pull request #4 from mjarkk/master
Fix half of the readme in code block
2 parents 86c9aa3 + e8e3459 commit 5e455d9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,25 @@
55
Middleware and an [`Upload` scalar](#class-graphqlupload) to add support for [GraphQL multipart requests](https://github.com/jaydenseric/graphql-multipart-request-spec) (file uploads via queries and mutations) to various golang GraphQL servers.
66

77
## Installation
8-
````
98
```bash
109
go get github.com/jpascal/graphql-upload
1110
```
1211

1312
## Usage
1413

1514
```go
16-
server := &http.Server{Addr: "0.0.0.0:5000", Handler: handler.New(func(request *handler.Request) interface{} {
15+
server := &http.Server{
16+
Addr: "0.0.0.0:5000",
17+
Handler: handler.New(func(request *handler.Request) interface{} {
1718
return graphql.Do(graphql.Params{
1819
RequestString: request.Query,
1920
OperationName: request.OperationName,
2021
VariableValues: request.Variables,
2122
Schema: schema.New(),
2223
Context: request.Context,
2324
})
24-
}, &handler.Config {
25-
MaxBodySize: 1024
26-
}),
27-
}
25+
}, &handler.Config {MaxBodySize: 1024}),
26+
}
2827
server.ListenAndServe()
2928
```
3029

0 commit comments

Comments
 (0)