Merge lp:~cjwatson/lp-translations-tools/referer into lp:~jtv/lp-translations-tools/trunk

Proposed by Colin Watson
Status: Merged
Approved by: Jeroen T. Vermeulen
Approved revision: 20
Merged at revision: 20
Proposed branch: lp:~cjwatson/lp-translations-tools/referer
Merge into: lp:~jtv/lp-translations-tools/trunk
Diff against target: 23 lines (+2/-0)
2 files modified
bin/lp-translations-tools-login (+1/-0)
bin/lp-translations-tools-upload (+1/-0)
To merge this branch: bzr merge lp:~cjwatson/lp-translations-tools/referer

Description of the change

Launchpad requires a Referer: header now. Pass one.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/lp-translations-tools-login'
2--- bin/lp-translations-tools-login 2009-01-05 09:41:05 +0000
3+++ bin/lp-translations-tools-login 2010-04-19 22:17:12 +0000
4@@ -183,6 +183,7 @@
5 --cookie-jar "$COOKIE" \
6 "$LP_SERVER/+login" \
7 --user-agent "$USER_AGENT" \
8+ --referer "$LP_SERVER/+login" \
9 --data '@-' \
10 --output "$OUTPUT"
11
12
13=== modified file 'bin/lp-translations-tools-upload'
14--- bin/lp-translations-tools-upload 2009-01-05 11:14:06 +0000
15+++ bin/lp-translations-tools-upload 2010-04-19 22:17:12 +0000
16@@ -223,6 +223,7 @@
17 "$URL" \
18 --cookie "$COOKIE" \
19 --user-agent "$USER_AGENT" \
20+ --referer "$URL" \
21 --retry 5 \
22 --form "file=@$FILE" \
23 --form "UPLOAD=Upload" \

Subscribers

People subscribed via source and target branches

to all changes: