/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spec/lib/rex/proto/http/request_spec.rb
16 строк
491 B
Spencer McIntyre
Add the initial, failing tests
16 июл 2026, 19:56
16 июл 2026, 19:56
4af14ea
Код
Авторство
О чём код?
require 'spec_helper' require 'rex/proto/http/packet' require 'rex/proto/http/packet/header' require 'rex/proto/http/request' RSpec.describe Rex::Proto::Http::Request do describe '#body' do it 'uses the query string as the body for POST requests without explicit body bytes' do request = described_class.new('POST', '/api?foo=bar&baz=qux') expect(request.body).to eq('foo=bar&baz=qux') expect(request.to_s).to end_with("\r\n\r\nfoo=bar&baz=qux") end end end