Skip to content

Commit

Permalink
cleanup formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mbieser committed Oct 25, 2013
1 parent 54f9495 commit b11ca1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/eventsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ function EventSource(url, eventSourceInitDict) {
var options = require('url').parse(url);
var isSecure = options.protocol == 'https:';
options.headers = { 'Cache-Control': 'no-cache', 'Accept': 'text/event-stream' };
if (lastEventId) {
options.headers['Last-Event-ID'] = lastEventId;
}
if (lastEventId) options.headers['Last-Event-ID'] = lastEventId;


if (eventSourceInitDict && eventSourceInitDict.headers && isPlainObject(eventSourceInitDict.headers)) {
Expand Down

0 comments on commit b11ca1c

Please sign in to comment.