Skip to content

Instantly share code, notes, and snippets.

View AlexanderChen1989's full-sized avatar

AlexanderChen1989 AlexanderChen1989

View GitHub Profile
@AlexanderChen1989
AlexanderChen1989 / proxy_views.py
Created December 6, 2012 03:10 — forked from joeshaw/proxy_views.py
super-hacky flask proxy
# coding:utf-8
# Copyright 2011 litl, LLC. All Rights Reserved.
import httplib
import re
import urllib
import urlparse
from flask import Blueprint, request, Response, url_for
from werkzeug.datastructures import Headers