mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 08:20:46 +03:00
Filter HEAD out from schemas (#4357)
This commit is contained in:
parent
54096dc22f
commit
aff146ae83
|
@ -167,7 +167,7 @@ class SchemaGenerator(object):
|
||||||
|
|
||||||
return [
|
return [
|
||||||
method for method in
|
method for method in
|
||||||
callback.cls().allowed_methods if method != 'OPTIONS'
|
callback.cls().allowed_methods if method not in ('OPTIONS', 'HEAD')
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_key(self, path, method, callback):
|
def get_key(self, path, method, callback):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user