File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -753,6 +753,17 @@ To utilize urlencoded request bodies, _req.body_
753
753
should be an object. This can be done by using
754
754
the _ express.bodyParser middleware.
755
755
756
+ ### req.get(field, param)
757
+
758
+ Get _ field_ 's _ param_ value, defaulting to '' when the _ param_
759
+ or _ field_ is not present.
760
+
761
+ req.get('content-disposition', 'filename');
762
+ // => "something.png"
763
+
764
+ req.get('Content-Type', 'boundary');
765
+ // => "--foo-bar-baz"
766
+
756
767
### req.flash(type[ , msg] )
757
768
758
769
Queue flash _ msg_ of the given _ type_ .
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ req.header = function(name, defaultValue){
70
70
*
71
71
* Examples:
72
72
*
73
- * req.get('content-disposition', 'filename');
74
- * // => "something.png"
73
+ * req.get('content-disposition', 'filename');
74
+ * // => "something.png"
75
75
*
76
76
* @param {String } field
77
77
* @param {String } param
You can’t perform that action at this time.
0 commit comments