mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-31 00:00:10 +08:00
Make default implementation for GCDWebServerRequest and GCDWebServerResponse ignore bodies
This commit is contained in:
@@ -249,8 +249,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)writeData:(NSData*)data error:(NSError**)error {
|
- (BOOL)writeData:(NSData*)data error:(NSError**)error {
|
||||||
[self doesNotRecognizeSelector:_cmd];
|
return YES;
|
||||||
return NO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)close:(NSError**)error {
|
- (BOOL)close:(NSError**)error {
|
||||||
|
|||||||
@@ -212,8 +212,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSData*)readData:(NSError**)error {
|
- (NSData*)readData:(NSError**)error {
|
||||||
[self doesNotRecognizeSelector:_cmd];
|
return [NSData data];
|
||||||
return nil;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)close {
|
- (void)close {
|
||||||
|
|||||||
Reference in New Issue
Block a user