File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/main/java/io/vertx/core/http/impl/headers Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,18 @@ public boolean contentTypeSet() {
78
78
}
79
79
80
80
@ Override
81
- public VertxHttpHeaders add (CharSequence name , Object value ) {
81
+ public VertxHttpHeaders add (CharSequence name , CharSequence value ) {
82
82
int h = AsciiString .hashCode (name );
83
83
int i = index (h );
84
- add0 (h , i , name , ( CharSequence ) value );
84
+ add0 (h , i , name , value );
85
85
return this ;
86
86
}
87
87
88
+ @ Override
89
+ public VertxHttpHeaders add (CharSequence name , Object value ) {
90
+ return add (name , (CharSequence )value );
91
+ }
92
+
88
93
@ Override
89
94
public VertxHttpHeaders add (final String name , final String strVal ) {
90
95
int h = AsciiString .hashCode (name );
@@ -373,11 +378,6 @@ public boolean contains(CharSequence name) {
373
378
return get0 (name ) != null ;
374
379
}
375
380
376
- @ Override
377
- public VertxHttpHeaders add (CharSequence name , CharSequence value ) {
378
- return add (name .toString (), value .toString ());
379
- }
380
-
381
381
@ Override
382
382
public VertxHttpHeaders add (CharSequence name , Iterable values ) {
383
383
String n = name .toString ();
You can’t perform that action at this time.
0 commit comments