Skip to content

Commit

Permalink
Merge pull request naugtur#166 from malantonio/patch-1
Browse files Browse the repository at this point in the history
fix readme formatting
  • Loading branch information
naugtur authored May 28, 2017
2 parents 522fda9 + 376dfa5 commit 9ecf044
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ Pass an `XMLHttpRequest` object (or something that acts like one) to use instead
- How do I add an `onprogress` listener?
- use `beforeSend` function for non-standard things that are browser specific. In this case:
```js
xhr({
...
beforeSend: function(xhrObject){
xhrObject.onprogress = function(){}
}
})
```
xhr({
...
beforeSend: function(xhrObject){
xhrObject.onprogress = function(){}
}
})
```
## Mocking Requests
You can override the constructor used to create new requests for testing. When you're making a new request:
Expand Down

0 comments on commit 9ecf044

Please sign in to comment.