add tests for reverse proxies

This commit is contained in:
Daniel Grossmann-Kavanagh
2019-01-12 23:16:57 -08:00
parent 2b23b75ce0
commit c672c85c00
7 changed files with 210 additions and 5 deletions

View File

@@ -4,11 +4,13 @@ example of aiohttp connexion running behind a path-altering reverse-proxy
'''
import json
import connexion
from yarl import URL
from aiohttp import web
from aiohttp_remotes.x_forwarded import XForwardedBase
from aiohttp_remotes.exceptions import RemoteError, TooManyHeaders
from aiohttp_remotes.x_forwarded import XForwardedBase
from yarl import URL
X_FORWARDED_PATH = "X-Forwarded-Path"