Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(435)

Issue 5270046: code review 5270046: http: avoid panic caused by nil URL (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by ality
Modified:
13 years, 5 months ago
Reviewers:
CC:
bradfitz, golang-dev
Visibility:
Public.

Description

http: avoid panic caused by nil URL The current code will panic if an invalid request (one with a nil URL) is passed to the doFollowingRedirects function. Also, remove a redundant nil Header check.

Patch Set 1 #

Patch Set 2 : diff -r 6e34838772f1 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 6e34838772f1 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 6e34838772f1 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M src/pkg/http/client.go View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 4
ality
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 5 months ago (2011-10-14 23:35:51 UTC) #1
ality
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-14 23:51:24 UTC) #2
bradfitz
LGTM Thanks!
13 years, 5 months ago (2011-10-15 00:01:58 UTC) #3
bradfitz
13 years, 5 months ago (2011-10-15 00:09:18 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=5b1ad5da9383 ***

http: avoid panic caused by nil URL

The current code will panic if an invalid
request (one with a nil URL) is passed to
the doFollowingRedirects function.

Also, remove a redundant nil Header check.

R=bradfitz
CC=golang-dev
http://codereview.appspot.com/5270046

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b