( opChain *chain, options []ContentOpts, expectedType string, expectedCharset ...string, )
| 1018 | } |
| 1019 | |
| 1020 | func (r *Response) checkContentOptions( |
| 1021 | opChain *chain, options []ContentOpts, expectedType string, expectedCharset ...string, |
| 1022 | ) bool { |
| 1023 | if len(options) != 0 { |
| 1024 | if options[0].MediaType != "" { |
| 1025 | expectedType = options[0].MediaType |
| 1026 | } |
| 1027 | if options[0].Charset != "" { |
| 1028 | expectedCharset = []string{options[0].Charset} |
| 1029 | } |
| 1030 | } |
| 1031 | return r.checkContentType(opChain, expectedType, expectedCharset...) |
| 1032 | } |
| 1033 | |
| 1034 | func (r *Response) checkContentType( |
| 1035 | opChain *chain, expectedType string, expectedCharset ...string, |
no test coverage detected