Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 74... Línea 74...
74
            return;
74
            return;
75
        }
75
        }
Línea 76... Línea 76...
76
 
76
 
Línea 77... Línea 77...
77
        $expect = $options['expect'] ?? null;
77
        $expect = $options['expect'] ?? null;
78
 
78
 
79
        // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0
79
        // Return if disabled or using HTTP/1.0
80
        if ($expect === false || $request->getProtocolVersion() < 1.1) {
80
        if ($expect === false || $request->getProtocolVersion() === '1.0') {
Línea 81... Línea 81...
81
            return;
81
            return;
82
        }
82
        }
83
 
83
 
-
 
84
        // The expect header is unconditionally enabled
84
        // The expect header is unconditionally enabled
85
        if ($expect === true) {
85
        if ($expect === true) {
86
            $modify['set_headers']['Expect'] = '100-Continue';
Línea 86... Línea 87...
86
            $modify['set_headers']['Expect'] = '100-Continue';
87
 
87
            return;
88
            return;