#ifndef PROGMEM_H #define PROGMEM_H 1 #if defined(__AVR__) # include #elif defined(__arm__) # define PROGMEM # define pgm_read_byte(p) *(p) # define pgm_read_word(p) *(p) #endif #endif l/mitmproxy/atom/examples/modify_form.py?h=master' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
blob: b63a158607411bc3d255c9512380e439ed334744 (plain)
1
2
3
4
5
6
7
8
def request(flow):
    if flow.request.urlencoded_form:
        flow.request.urlencoded_form["mitmproxy"] = "rocks"
    else:
        # This sets the proper content type and overrides the body.
        flow.request.urlencoded_form = [
            ("foo", "bar")
        ]