Skip to content

Commit 7509c10

Browse files
committed
Merge pull request Kong#53 from jpadilla/patch-1
Fix headers kwarg style
2 parents 79301fc + f49085b commit 7509c10

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/targets/python/python3.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function (source, options) {
6969
} else if (payload && !headerCount) {
7070
code.push(util.format('conn.request("%s", "%s", payload)', method, path))
7171
} else if (!payload && headerCount) {
72-
code.push(util.format('conn.request("%s", "%s", headers = headers)', method, path))
72+
code.push(util.format('conn.request("%s", "%s", headers=headers)', method, path))
7373
} else {
7474
code.push(util.format('conn.request("%s", "%s")', method, path))
7575
}

‎test/fixtures/output/python/python3/cookies.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
headers = { 'cookie': "foo=bar; bar=baz" }
66

7-
conn.request("POST", "/har", headers = headers)
7+
conn.request("POST", "/har", headers=headers)
88

99
res = conn.getresponse()
1010
data = res.read()

‎test/fixtures/output/python/python3/headers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'x-foo': "Bar"
88
}
99

10-
conn.request("GET", "/har", headers = headers)
10+
conn.request("GET", "/har", headers=headers)
1111

1212
res = conn.getresponse()
1313
data = res.read()

0 commit comments

Comments
 (0)