Update README.md

This commit is contained in:
Pierre-Olivier Latour
2012-12-30 01:00:33 -08:00
parent f2d33a0a5e
commit 8e9a6d7acd

View File

@@ -104,7 +104,8 @@ Here's an example handler that redirects "/" to "/index.html" using the convenie
requestClass:[GCDWebServerRequest class]
processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
return [GCDWebServerResponse responseWithRedirect:[NSURL URLWithString:@"index.html" relativeToURL:request.URL] permanent:NO];
return [GCDWebServerResponse responseWithRedirect:[NSURL URLWithString:@"index.html" relativeToURL:request.URL]
permanent:NO];
}];
```